how to find pi in differential equation